<template>
  <div id="app">
    <header>
      <router-view name="header"></router-view>
    </header>
    <main>
      <router-view></router-view>
    </main>
    <footer>
      <router-view name="footer"></router-view>
    </footer>
  </div>
</template>

<style lang="less">
html,body,#app{
  height:100%;
  width:100%;
}
#app{
  display: flex;
  flex-direction: column;
  main{
    flex:1;
    overflow:auto
  }
}
</style>
